#ifndef WIDGET_NODE_ATTACHMENT_H
#define WIDGET_NODE_ATTACHMENT_H

#include <QWidget>

namespace Ui {
class WidgetNodeAttachment;
}

class WidgetNodeAttachment : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetNodeAttachment(QWidget *parent = nullptr);
    ~WidgetNodeAttachment();

public slots:
    void setupNode(const QString& name);

private slots:
    void comboBoxAnimation_currentIndexChanged(int index);

    void comboBoxJoint_currentIndexChanged(int index);

    void on_pushButtonAdd_clicked();

private:
    static int handleJointNames(int count, const char** nameList, void* form);
    static int handleJointLocal(int, const char** transform, void* form);

private:
    Ui::WidgetNodeAttachment *ui;
    QString _selectedJoint;
};

#endif // WIDGET_NODE_ATTACHMENT_H
